package com.example.shop.eventbus;

import android.os.SystemClock;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by Administrator on 2017/2/6.
 */

public class MyThread extends Thread{
    int count;

    @Override
    public void run() {
        super.run();
        while (true){
            SystemClock.sleep(1000);
            System.out.println("枪托利亚"+count);
            count++;
            Lancer lancer=new Lancer();
            lancer.count=count;
            EventBus.getDefault().post(lancer);
        }
    }
}
